home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 6 code / TCP.sea / TCP / NewsWatcher / NW Source / Shared Code / Reusable Source / nntp.h < prev    next >
MacBinary  |  1995-02-25  |  3.6 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Feb 25 13:55:05 1995, modified Sat Feb 25 13:55:05 1995, creator 'MMCC', type ASCII, 3018 bytes "nntp.h" , at 0xc4a 410 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 6e 6e 74 70 2e 68 | 00 00 00 00 00 00 00 00 |..nntp.h|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 0b ca 00 | 00 01 9a ab 75 2d 89 ab |........|....u-..|
|00000060| 75 2d 89 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |u-......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ca 7f 00 00 |........|........|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 4e 54 54 50 5f 5f |#ifndef |__NTTP__|
|00000090| 0d 23 64 65 66 69 6e 65 | 20 5f 5f 4e 4e 54 50 5f |.#define| __NNTP_|
|000000a0| 5f 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 6e 65 74 |_..#incl|ude "net|
|000000b0| 2e 68 22 0d 0d 23 64 65 | 66 69 6e 65 20 6e 6e 74 |.h"..#de|fine nnt|
|000000c0| 70 53 65 72 76 65 72 45 | 72 72 20 09 09 09 31 33 |pServerE|rr ...13|
|000000d0| 30 0d 23 64 65 66 69 6e | 65 20 6e 6e 74 70 4e 6f |0.#defin|e nntpNo|
|000000e0| 53 75 63 68 47 72 6f 75 | 70 45 72 72 09 09 31 33 |SuchGrou|pErr..13|
|000000f0| 31 0d 23 64 65 66 69 6e | 65 20 6e 6e 74 70 4e 6f |1.#defin|e nntpNo|
|00000100| 53 75 63 68 41 72 74 69 | 63 6c 65 45 72 72 09 31 |SuchArti|cleErr.1|
|00000110| 33 32 0d 23 64 65 66 69 | 6e 65 20 6e 6e 74 70 41 |32.#defi|ne nntpA|
|00000120| 75 74 68 46 61 69 6c 65 | 64 45 72 72 09 09 31 33 |uthFaile|dErr..13|
|00000130| 33 0d 0d 74 79 70 65 64 | 65 66 20 76 6f 69 64 20 |3..typed|ef void |
|00000140| 2a 4e 6e 74 70 53 74 72 | 65 61 6d 52 65 66 3b 0d |*NntpStr|eamRef;.|
|00000150| 74 79 70 65 64 65 66 20 | 4f 53 45 72 72 20 28 2a |typedef |OSErr (*|
|00000160| 4e 6e 74 70 47 69 76 65 | 54 69 6d 65 46 75 6e 63 |NntpGive|TimeFunc|
|00000170| 74 69 6f 6e 29 20 28 76 | 6f 69 64 29 3b 0d 0d 74 |tion) (v|oid);..t|
|00000180| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 4e 6e |ypedef s|truct Nn|
|00000190| 74 70 53 74 72 65 61 6d | 4f 70 74 69 6f 6e 73 20 |tpStream|Options |
|000001a0| 7b 0d 09 73 68 6f 72 74 | 20 69 64 6c 65 54 69 6d |{..short| idleTim|
|000001b0| 65 3b 09 09 09 2f 2a 20 | 73 74 72 65 61 6d 20 69 |e;.../* |stream i|
|000001c0| 73 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |s automa|tically |
|000001d0| 63 6c 6f 73 65 64 20 69 | 66 20 69 64 6c 65 20 66 |closed i|f idle f|
|000001e0| 6f 72 20 74 68 69 73 20 | 0d 09 09 09 09 09 09 09 |or this |........|
|000001f0| 20 20 20 6d 61 6e 79 20 | 6d 69 6e 75 74 65 73 2c | many |minutes,|
|00000200| 20 6f 72 20 30 20 74 6f | 20 64 69 73 61 62 6c 65 | or 0 to| disable|
|00000210| 20 2a 2f 0d 09 42 6f 6f | 6c 65 61 6e 20 75 73 65 | */..Boo|lean use|
|00000220| 58 50 41 54 3b 09 09 2f | 2a 20 74 72 75 65 20 74 |XPAT;../|* true t|
|00000230| 6f 20 75 73 65 20 58 50 | 41 54 20 63 6f 6d 6d 61 |o use XP|AT comma|
|00000240| 6e 64 20 66 6f 72 20 73 | 65 61 72 63 68 65 73 20 |nd for s|earches |
|00000250| 2a 2f 0d 09 42 6f 6f 6c | 65 61 6e 20 73 65 6e 64 |*/..Bool|ean send|
|00000260| 4d 6f 64 65 52 65 61 64 | 65 72 3b 09 2f 2a 20 74 |ModeRead|er;./* t|
|00000270| 72 75 65 20 74 6f 20 73 | 65 6e 64 20 4d 4f 44 45 |rue to s|end MODE|
|00000280| 20 52 45 41 44 45 52 20 | 63 6f 6d 6d 61 6e 64 20 | READER |command |
|00000290| 61 66 74 65 72 20 63 6f | 6e 6e 65 63 74 20 2a 2f |after co|nnect */|
|000002a0| 0d 09 42 6f 6f 6c 65 61 | 6e 20 62 61 74 63 68 65 |..Boolea|n batche|
|000002b0| 64 43 6d 64 73 3b 09 2f | 2a 20 74 72 75 65 20 74 |dCmds;./|* true t|
|000002c0| 6f 20 75 73 65 20 62 61 | 74 63 68 65 64 20 47 52 |o use ba|tched GR|
|000002d0| 4f 55 50 20 63 6f 6d 6d | 61 6e 64 73 20 2a 2f 0d |OUP comm|ands */.|
|000002e0| 09 42 6f 6f 6c 65 61 6e | 20 6e 65 77 43 6f 6e 6e |.Boolean| newConn|
|000002f0| 65 63 74 69 6f 6e 3b 09 | 2f 2a 20 74 72 75 65 20 |ection;.|/* true |
|00000300| 74 6f 20 65 73 74 61 62 | 6c 69 73 68 20 6e 65 77 |to estab|lish new|
|00000310| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 62 65 66 6f | connect|ion befo|
|00000320| 72 65 20 67 65 74 74 69 | 6e 67 0d 09 09 09 09 09 |re getti|ng......|
|00000330| 09 09 20 20 20 67 72 6f | 75 70 20 69 6e 66 6f 20 |.. gro|up info |
|00000340| 2a 2f 0d 09 42 6f 6f 6c | 65 61 6e 20 61 75 74 68 |*/..Bool|ean auth|
|00000350| 4f 6e 43 6f 6e 6e 65 63 | 74 3b 09 2f 2a 20 74 72 |OnConnec|t;./* tr|
|00000360| 75 65 20 74 6f 20 61 75 | 74 68 6f 72 69 7a 65 20 |ue to au|thorize |
|00000370| 6f 6e 20 65 61 63 68 20 | 6e 65 77 20 63 6f 6e 6e |on each |new conn|
|00000380| 65 63 74 69 6f 6e 20 2a | 2f 0d 09 63 68 61 72 20 |ection *|/..char |
|00000390| 75 73 65 72 6e 61 6d 65 | 5b 33 32 5d 3b 09 09 2f |username|[32];../|
|000003a0| 2a 20 61 75 74 68 6f 72 | 69 7a 61 74 69 6f 6e 20 |* author|ization |
|000003b0| 75 73 65 72 6e 61 6d 65 | 20 2a 2f 0d 09 63 68 61 |username| */..cha|
|000003c0| 72 20 70 61 73 73 77 6f | 72 64 5b 33 32 5d 3b 09 |r passwo|rd[32];.|
|000003d0| 09 2f 2a 20 61 75 74 68 | 6f 72 69 7a 61 74 69 6f |./* auth|orizatio|
|000003e0| 6e 20 70 61 73 73 77 6f | 72 64 20 2a 2f 0d 7d 20 |n passwo|rd */.} |
|000003f0| 4e 6e 74 70 53 74 72 65 | 61 6d 4f 70 74 69 6f 6e |NntpStre|amOption|
|00000400| 73 3b 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |s;..type|def stru|
|00000410| 63 74 20 4e 6e 74 70 47 | 72 6f 75 70 49 6e 66 6f |ct NntpG|roupInfo|
|00000420| 20 7b 0d 09 6c 6f 6e 67 | 20 6f 66 66 73 65 74 3b | {..long| offset;|
|00000430| 09 09 09 2f 2a 20 6f 66 | 66 73 65 74 20 69 6e 74 |.../* of|fset int|
|00000440| 6f 20 73 74 72 69 6e 67 | 73 20 6f 66 20 67 72 6f |o string|s of gro|
|00000450| 75 70 20 6e 61 6d 65 20 | 2a 2f 0d 09 6c 6f 6e 67 |up name |*/..long|
|00000460| 20 66 69 72 73 74 3b 09 | 09 09 09 2f 2a 20 66 69 | first;.|.../* fi|
|00000470| 72 73 74 20 61 72 74 69 | 63 6c 65 20 6e 75 6d 62 |rst arti|cle numb|
|00000480| 65 72 20 69 6e 20 67 72 | 6f 75 70 20 2a 2f 0d 09 |er in gr|oup */..|
|00000490| 6c 6f 6e 67 20 6c 61 73 | 74 3b 09 09 09 09 2f 2a |long las|t;..../*|
|000004a0| 20 6c 61 73 74 20 61 72 | 74 69 63 6c 65 20 6e 75 | last ar|ticle nu|
|000004b0| 6d 62 65 72 20 69 6e 20 | 67 72 6f 75 70 20 2a 2f |mber in |group */|
|000004c0| 0d 09 6c 6f 6e 67 20 63 | 6f 75 6e 74 3b 09 09 09 |..long c|ount;...|
|000004d0| 09 2f 2a 20 65 73 74 69 | 6d 61 74 65 20 6f 66 20 |./* esti|mate of |
|000004e0| 6e 75 6d 62 65 72 20 6f | 66 20 61 72 74 69 63 6c |number o|f articl|
|000004f0| 65 73 20 69 6e 20 67 72 | 6f 75 70 20 2a 2f 0d 09 |es in gr|oup */..|
|00000500| 63 68 61 72 20 73 74 61 | 74 75 73 3b 09 09 09 2f |char sta|tus;.../|
|00000510| 2a 20 67 72 6f 75 70 20 | 73 74 61 74 75 73 2c 20 |* group |status, |
|00000520| 6c 6f 77 65 72 20 63 61 | 73 65 20 2a 2f 0d 09 42 |lower ca|se */..B|
|00000530| 6f 6f 6c 65 61 6e 20 6f | 6b 3b 09 09 09 09 2f 2a |oolean o|k;..../*|
|00000540| 20 74 72 75 65 20 69 66 | 20 6e 6f 20 65 72 72 6f | true if| no erro|
|00000550| 72 20 77 68 65 6e 20 67 | 65 74 74 69 6e 67 20 67 |r when g|etting g|
|00000560| 72 6f 75 70 20 69 6e 66 | 6f 20 2a 2f 0d 7d 20 4e |roup inf|o */.} N|
|00000570| 6e 74 70 47 72 6f 75 70 | 49 6e 66 6f 2c 20 2a 4e |ntpGroup|Info, *N|
|00000580| 6e 74 70 47 72 6f 75 70 | 49 6e 66 6f 50 74 72 2c |ntpGroup|InfoPtr,|
|00000590| 20 2a 2a 4e 6e 74 70 47 | 72 6f 75 70 49 6e 66 6f | **NntpG|roupInfo|
|000005a0| 48 61 6e 64 6c 65 3b 0d | 0d 74 79 70 65 64 65 66 |Handle;.|.typedef|
|000005b0| 20 73 74 72 75 63 74 20 | 4e 6e 74 70 48 65 61 64 | struct |NntpHead|
|000005c0| 65 72 49 6e 66 6f 20 7b | 0d 09 6c 6f 6e 67 20 6e |erInfo {|..long n|
|000005d0| 75 6d 62 65 72 3b 09 09 | 09 2f 2a 20 61 72 74 69 |umber;..|./* arti|
|000005e0| 63 6c 65 20 6e 75 6d 62 | 65 72 20 2a 2f 0d 09 6c |cle numb|er */..l|
|000005f0| 6f 6e 67 20 6f 66 66 73 | 65 74 3b 09 09 09 2f 2a |ong offs|et;.../*|
|00000600| 20 6f 66 66 73 65 74 20 | 69 6e 74 6f 20 73 74 72 | offset |into str|
|00000610| 69 6e 67 73 20 6f 66 20 | 68 65 61 64 65 72 20 63 |ings of |header c|
|00000620| 6f 6e 74 65 6e 74 73 20 | 2a 2f 0d 7d 20 4e 6e 74 |ontents |*/.} Nnt|
|00000630| 70 48 65 61 64 65 72 49 | 6e 66 6f 2c 20 2a 4e 6e |pHeaderI|nfo, *Nn|
|00000640| 74 70 48 65 61 64 65 72 | 49 6e 66 6f 50 74 72 2c |tpHeader|InfoPtr,|
|00000650| 20 2a 2a 4e 6e 74 70 48 | 65 61 64 65 72 49 6e 66 | **NntpH|eaderInf|
|00000660| 6f 48 61 6e 64 6c 65 3b | 0d 0d 76 6f 69 64 20 4e |oHandle;|..void N|
|00000670| 6e 74 70 49 6e 69 74 20 | 28 4e 6e 74 70 47 69 76 |ntpInit |(NntpGiv|
|00000680| 65 54 69 6d 65 46 75 6e | 63 74 69 6f 6e 20 67 69 |eTimeFun|ction gi|
|00000690| 76 65 54 69 6d 65 29 3b | 0d 4f 53 45 72 72 20 4e |veTime);|.OSErr N|
|000006a0| 6e 74 70 49 64 6c 65 20 | 28 76 6f 69 64 29 3b 0d |ntpIdle |(void);.|
|000006b0| 0d 4f 53 45 72 72 20 4e | 6e 74 70 4f 70 65 6e 20 |.OSErr N|ntpOpen |
|000006c0| 28 63 68 61 72 20 2a 68 | 6f 73 74 2c 20 4e 6e 74 |(char *h|ost, Nnt|
|000006d0| 70 53 74 72 65 61 6d 4f | 70 74 69 6f 6e 73 20 2a |pStreamO|ptions *|
|000006e0| 6f 70 74 69 6f 6e 73 2c | 20 4e 6e 74 70 53 74 72 |options,| NntpStr|
|000006f0| 65 61 6d 52 65 66 20 2a | 73 74 72 65 61 6d 29 3b |eamRef *|stream);|
|00000700| 0d 4f 53 45 72 72 20 4e | 6e 74 70 43 6c 6f 73 65 |.OSErr N|ntpClose|
|00000710| 20 28 4e 6e 74 70 53 74 | 72 65 61 6d 52 65 66 20 | (NntpSt|reamRef |
|00000720| 73 74 72 65 61 6d 29 3b | 0d 4f 53 45 72 72 20 4e |stream);|.OSErr N|
|00000730| 6e 74 70 41 62 6f 72 74 | 20 28 4e 6e 74 70 53 74 |ntpAbort| (NntpSt|
|00000740| 72 65 61 6d 52 65 66 20 | 73 74 72 65 61 6d 29 3b |reamRef |stream);|
|00000750| 0d 4f 53 45 72 72 20 4e | 6e 74 70 53 65 74 53 74 |.OSErr N|ntpSetSt|
|00000760| 72 65 61 6d 4f 70 74 69 | 6f 6e 73 20 28 4e 6e 74 |reamOpti|ons (Nnt|
|00000770| 70 53 74 72 65 61 6d 52 | 65 66 20 73 74 72 65 61 |pStreamR|ef strea|
|00000780| 6d 2c 20 4e 6e 74 70 53 | 74 72 65 61 6d 4f 70 74 |m, NntpS|treamOpt|
|00000790| 69 6f 6e 73 20 2a 6f 70 | 74 69 6f 6e 73 29 3b 0d |ions *op|tions);.|
|000007a0| 4f 53 45 72 72 20 4e 6e | 74 70 47 65 74 47 72 6f |OSErr Nn|tpGetGro|
|000007b0| 75 70 4e 61 6d 65 73 20 | 28 4e 6e 74 70 53 74 72 |upNames |(NntpStr|
|000007c0| 65 61 6d 52 65 66 20 73 | 74 72 65 61 6d 2c 20 75 |eamRef s|tream, u|
|000007d0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 74 69 6d |nsigned |long tim|
|000007e0| 65 2c 0d 09 63 68 61 72 | 20 2a 73 74 61 74 75 73 |e,..char| *status|
|000007f0| 46 69 6c 74 65 72 2c 20 | 48 61 6e 64 6c 65 20 2a |Filter, |Handle *|
|00000800| 73 74 72 69 6e 67 73 2c | 20 6c 6f 6e 67 20 2a 6e |strings,| long *n|
|00000810| 75 6d 47 72 6f 75 70 73 | 29 3b 0d 4f 53 45 72 72 |umGroups|);.OSErr|
|00000820| 20 4e 6e 74 70 47 65 74 | 47 72 6f 75 70 49 6e 66 | NntpGet|GroupInf|
|00000830| 6f 20 28 4e 6e 74 70 53 | 74 72 65 61 6d 52 65 66 |o (NntpS|treamRef|
|00000840| 20 73 74 72 65 61 6d 2c | 20 63 68 61 72 20 2a 67 | stream,| char *g|
|00000850| 72 6f 75 70 2c 20 0d 09 | 6c 6f 6e 67 20 2a 66 69 |roup, ..|long *fi|
|00000860| 72 73 74 2c 20 6c 6f 6e | 67 20 2a 6c 61 73 74 2c |rst, lon|g *last,|
|00000870| 20 6c 6f 6e 67 20 2a 63 | 6f 75 6e 74 29 3b 0d 4f | long *c|ount);.O|
|00000880| 53 45 72 72 20 4e 6e 74 | 70 47 65 74 4d 75 6c 74 |SErr Nnt|pGetMult|
|00000890| 69 70 6c 65 47 72 6f 75 | 70 49 6e 66 6f 20 28 4e |ipleGrou|pInfo (N|
|000008a0| 6e 74 70 53 74 72 65 61 | 6d 52 65 66 20 73 74 72 |ntpStrea|mRef str|
|000008b0| 65 61 6d 2c 20 4e 6e 74 | 70 47 72 6f 75 70 49 6e |eam, Nnt|pGroupIn|
|000008c0| 66 6f 48 61 6e 64 6c 65 | 20 69 6e 66 6f 2c 0d 09 |foHandle| info,..|
|000008d0| 6c 6f 6e 67 20 6e 75 6d | 47 72 6f 75 70 73 2c 20 |long num|Groups, |
|000008e0| 48 61 6e 64 6c 65 20 73 | 74 72 69 6e 67 73 29 3b |Handle s|trings);|
|000008f0| 0d 4f 53 45 72 72 20 4e | 6e 74 70 47 65 74 48 65 |.OSErr N|ntpGetHe|
|00000900| 61 64 65 72 73 20 28 4e | 6e 74 70 53 74 72 65 61 |aders (N|ntpStrea|
|00000910| 6d 52 65 66 20 73 74 72 | 65 61 6d 2c 20 63 68 61 |mRef str|eam, cha|
|00000920| 72 20 2a 67 72 6f 75 70 | 2c 20 6c 6f 6e 67 20 66 |r *group|, long f|
|00000930| 69 72 73 74 2c 20 6c 6f | 6e 67 20 6c 61 73 74 2c |irst, lo|ng last,|
|00000940| 0d 09 63 68 61 72 20 2a | 68 65 61 64 65 72 2c 20 |..char *|header, |
|00000950| 63 68 61 72 20 2a 70 61 | 74 74 65 72 6e 2c 0d 09 |char *pa|ttern,..|
|00000960| 76 6f 69 64 20 28 2a 62 | 75 69 6c 64 58 50 41 54 |void (*b|uildXPAT|
|00000970| 29 28 63 68 61 72 20 2a | 70 61 74 74 65 72 6e 2c |)(char *|pattern,|
|00000980| 20 63 68 61 72 20 2a 72 | 65 67 45 78 70 2c 20 73 | char *r|egExp, s|
|00000990| 68 6f 72 74 20 72 65 67 | 45 78 70 4c 65 6e 29 2c |hort reg|ExpLen),|
|000009a0| 0d 09 42 6f 6f 6c 65 61 | 6e 20 28 2a 6d 61 74 63 |..Boolea|n (*matc|
|000009b0| 68 50 61 74 74 65 72 6e | 29 28 63 68 61 72 20 2a |hPattern|)(char *|
|000009c0| 70 61 74 74 65 72 6e 2c | 20 63 68 61 72 20 2a 73 |pattern,| char *s|
|000009d0| 74 72 69 6e 67 29 2c 0d | 09 4e 6e 74 70 48 65 61 |tring),.|.NntpHea|
|000009e0| 64 65 72 49 6e 66 6f 48 | 61 6e 64 6c 65 20 2a 69 |derInfoH|andle *i|
|000009f0| 6e 66 6f 2c 20 48 61 6e | 64 6c 65 20 2a 73 74 72 |nfo, Han|dle *str|
|00000a00| 69 6e 67 73 2c 20 6c 6f | 6e 67 20 2a 6e 75 6d 48 |ings, lo|ng *numH|
|00000a10| 65 61 64 65 72 73 29 3b | 0d 4f 53 45 72 72 20 4e |eaders);|.OSErr N|
|00000a20| 6e 74 70 47 65 74 41 72 | 74 69 63 6c 65 20 28 4e |ntpGetAr|ticle (N|
|00000a30| 6e 74 70 53 74 72 65 61 | 6d 52 65 66 20 73 74 72 |ntpStrea|mRef str|
|00000a40| 65 61 6d 2c 20 63 68 61 | 72 20 2a 67 72 6f 75 70 |eam, cha|r *group|
|00000a50| 2c 20 6c 6f 6e 67 20 6e | 75 6d 62 65 72 2c 20 0d |, long n|umber, .|
|00000a60| 09 63 68 61 72 20 2a 69 | 64 2c 20 63 68 61 72 20 |.char *i|d, char |
|00000a70| 2a 70 61 72 74 2c 20 48 | 61 6e 64 6c 65 20 2a 74 |*part, H|andle *t|
|00000a80| 65 78 74 2c 20 4e 65 74 | 43 68 75 6e 6b 46 75 6e |ext, Net|ChunkFun|
|00000a90| 63 74 69 6f 6e 20 63 68 | 75 6e 6b 46 75 6e 63 74 |ction ch|unkFunct|
|00000aa0| 69 6f 6e 2c 0d 09 50 74 | 72 20 75 73 65 72 44 61 |ion,..Pt|r userDa|
|00000ab0| 74 61 50 74 72 29 3b 0d | 4f 53 45 72 72 20 4e 6e |taPtr);.|OSErr Nn|
|00000ac0| 74 70 50 6f 73 74 41 72 | 74 69 63 6c 65 20 28 4e |tpPostAr|ticle (N|
|00000ad0| 6e 74 70 53 74 72 65 61 | 6d 52 65 66 20 73 74 72 |ntpStrea|mRef str|
|00000ae0| 65 61 6d 2c 20 48 61 6e | 64 6c 65 20 74 65 78 74 |eam, Han|dle text|
|00000af0| 2c 20 42 6f 6f 6c 65 61 | 6e 20 2a 70 6f 73 74 49 |, Boolea|n *postI|
|00000b00| 6e 64 65 74 65 72 6d 69 | 6e 61 74 65 29 3b 0d 4f |ndetermi|nate);.O|
|00000b10| 53 45 72 72 20 4e 6e 74 | 70 41 75 74 68 6f 72 69 |SErr Nnt|pAuthori|
|00000b20| 7a 65 20 28 4e 6e 74 70 | 53 74 72 65 61 6d 52 65 |ze (Nntp|StreamRe|
|00000b30| 66 20 73 74 72 65 61 6d | 29 3b 0d 4f 53 45 72 72 |f stream|);.OSErr|
|00000b40| 20 4e 6e 74 70 47 65 74 | 48 65 6c 6c 6f 20 28 4e | NntpGet|Hello (N|
|00000b50| 6e 74 70 53 74 72 65 61 | 6d 52 65 66 20 73 74 72 |ntpStrea|mRef str|
|00000b60| 65 61 6d 2c 20 43 53 74 | 72 32 35 35 20 6d 73 67 |eam, CSt|r255 msg|
|00000b70| 29 3b 0d 4f 53 45 72 72 | 20 4e 6e 74 70 47 65 74 |);.OSErr| NntpGet|
|00000b80| 48 65 6c 70 20 28 4e 6e | 74 70 53 74 72 65 61 6d |Help (Nn|tpStream|
|00000b90| 52 65 66 20 73 74 72 65 | 61 6d 2c 20 48 61 6e 64 |Ref stre|am, Hand|
|00000ba0| 6c 65 20 2a 74 65 78 74 | 29 3b 0d 4f 53 45 72 72 |le *text|);.OSErr|
|00000bb0| 20 4e 6e 74 70 47 65 74 | 49 50 41 64 64 72 20 28 | NntpGet|IPAddr (|
|00000bc0| 4e 6e 74 70 53 74 72 65 | 61 6d 52 65 66 20 73 74 |NntpStre|amRef st|
|00000bd0| 72 65 61 6d 2c 20 75 6e | 73 69 67 6e 65 64 20 6c |ream, un|signed l|
|00000be0| 6f 6e 67 20 2a 69 70 41 | 64 64 72 29 3b 0d 76 6f |ong *ipA|ddr);.vo|
|00000bf0| 69 64 20 4e 6e 74 70 47 | 65 74 53 65 72 76 65 72 |id NntpG|etServer|
|00000c00| 45 72 72 49 6e 66 6f 20 | 28 4e 6e 74 70 53 74 72 |ErrInfo |(NntpStr|
|00000c10| 65 61 6d 52 65 66 20 73 | 74 72 65 61 6d 2c 20 4e |eamRef s|tream, N|
|00000c20| 65 74 53 65 72 76 65 72 | 45 72 72 49 6e 66 6f 20 |etServer|ErrInfo |
|00000c30| 2a 73 65 72 76 65 72 45 | 72 72 49 6e 66 6f 29 3b |*serverE|rrInfo);|
|00000c40| 20 0d 0d 23 65 6e 64 69 | 66 0d 00 00 00 00 00 00 | ..#endi|f.......|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000c90| 00 00 00 c3 00 60 0c cf | 00 20 0d 9a 00 20 0d c3 |.....`..|. ... ..|
|00000ca0| 00 20 07 00 00 00 00 c3 | 00 c0 0f e1 00 20 10 23 |. ......|..... .#|
|00000cb0| 06 6e 6e 74 70 2e 68 b4 | 02 00 00 00 54 45 58 54 |.nntp.h.|....TEXT|
|00000cc0| 4d 4d 43 43 01 00 00 9c | 00 40 00 00 00 00 12 6e |MMCC....|.@.....n|
|00000cd0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 9c 00 40 |..TEXTMM|CC.....@|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 aa 4f 8a e8 00 00 | 0b ca 00 00 01 9a 1d 95 |...O....|........|
|00000d00| 00 04 1e e7 00 08 07 00 | 00 00 00 c4 00 38 1f 00 |........|.....8..|
|00000d10| 00 04 00 00 00 00 00 00 | 00 00 07 00 00 00 15 07 |........|........|
|00000d20| 00 05 03 f8 00 01 03 fb | 00 01 04 00 00 02 07 00 |........|........|
|00000d30| 00 00 15 07 00 09 04 23 | 00 01 04 26 00 01 04 2b |.......#|...&...+|
|00000d40| 00 01 07 00 00 00 15 07 | 00 0c 04 2f 00 01 04 33 |........|.../...3|
|00000d50| 00 01 04 3c 00 01 07 00 | 00 00 15 07 00 0f 04 e3 |...<....|........|
|00000d60| 00 01 00 00 00 00 00 00 | 00 00 07 00 00 00 15 07 |........|........|
|00000d70| 00 cf 19 57 00 0d 19 65 | 00 10 19 77 00 1c 07 00 |...W...e|...w....|
|00000d80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 03 | 00 04 00 5e 00 05 01 90 |........|...^....|
|00000db0| 02 64 00 5e 00 05 01 90 | 02 64 ab f7 5a 8f 00 00 |.d.^....|.d..Z...|
|00000dc0| 00 9b 00 00 00 ac 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00000dd0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000de0| 00 00 00 46 01 9c 00 78 | 17 24 00 00 00 1c 00 46 |...F...x|.$.....F|
|00000df0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000e00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000e10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+